﻿<div class="widget">
    <div class="widget-header">
        <h3><i class="fa fa-edit"></i> 入库登记</h3>
    </div>
    <div class="widget-content">
        <form class="form-horizontal" role="form">
            <div class="form-group" ng-show="data.isFastShip == 1">
                <label class="col-sm-2 control-label text-right"></label>
                <div class="col-sm-10 text-left">
                    <img src="/images/fast-ship.png" title="急速原单" style="width:80px; height:80px;" />
                </div>
            </div>
            <div class="form-group">
                <label for="txtRDC" class="col-sm-2 control-label text-right">是否转仓：</label>
                <div class="col-sm-10 text-left">
                    <input id="txtRDC" type="checkbox" ng-true-value="1" ng-false-value="0" ng-model="data.isTransfer">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">快递单号：</label>
                <div class="col-sm-10 text-left">
                    <input id="txtTrackingNumber" type="text" class="form-control" placeholder="快递单号" ng-model="data.trackingNumber" ng-blur="getPackageDetail()" ng-keydown="hotKey($event)">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">收货仓库：</label>
                <div class="col-sm-10 text-left">
                    <select class="form-control"
                            ng-model="data.warehouseNumber"
                            ng-disabled="tpl_status.isExist == true"
                            ng-options="item.warehouseNumber as item.warehouseName for item in tpl_status.warehouseList"></select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">快递名称：</label>
                <div class="col-sm-10 text-left">
                    <select class="form-control" ng-model="data.carrierName" ng-disabled="tpl_status.isExist == true">
                        <option value="DHL">DHL</option>
                        <option value="EMS">EMS</option>
                        <option value="FEDEX">FEDEX</option>
                        <option value="UPS">UPS</option>
                        <option value="其他快递">其他快递</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2  text-right">客户编号：</label>
                <div class="col-sm-10 text-left">
                    <input type="text" class="form-control" placeholder="客户编号" ng-model="data.customerNumber" ng-disabled="tpl_status.isExist == true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2  text-right">客户标示：</label>
                <div class="col-sm-10 text-left">
                    <input type="text" class="form-control" placeholder="客户标示" ng-model="data.receiveIdentity" ng-disabled="tpl_status.isExist == true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">运单内容：</label>
                <div class="col-sm-10 text-left">
                    <input type="text" class="form-control" placeholder="运单内容" ng-model="data.packageDescription" ng-disabled="tpl_status.isExist == true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">运单备注信息：</label>
                <div class="col-sm-10 text-left">
                    <textarea class="form-control" rows="5" cols="30" placeholder="运单备注信息" ng-model="data.packageNote" ng-disabled="tpl_status.isExist == true"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2  text-right">仓库位置：</label>
                <div class="col-sm-10 text-left">
                    <input type="text" class="form-control" placeholder="仓库位置" ng-model="data.location">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2  text-right">包裹重量：</label>
                <div class="col-sm-10 text-left">
                    <input type="text" class="form-control" placeholder="包裹重量" ng-model="data.packageWeight">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">仓库备注：</label>
                <div class="col-sm-10 text-left">
                    <textarea class="form-control" rows="5" cols="30" placeholder="仓库备注" ng-model="data.warehouseNote"></textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="button" class="btn btn-primary role" data-role="88" ng-click="btnSaveAndPrint()">登记并打印入库单</button>
                    <button type="button" class="btn btn-primary role" data-role="52" ng-click="btnPrint()" ng-disabled="data.trackingNumber == null || tpl_status.isExist == false">重新打印入库单</button>
                    <!--<button type="button" class="btn btn-primary" ng-click="btnSave()">登记</button>-->
                    <button type="button" class="btn btn-primary" ng-click="cancelEdit();">取消</button>
                    <!--<a class="btn btn-link" href="javascript:void(0)" ng-click="btnPrint()">打印入库单</a>-->
                </div>
            </div>
        </form>
    </div>
</div>
<print-inbound-package></print-inbound-package>